package com.maimao.info;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * @author MaoLin Wang
 * @date 2020/12/29 9:25 下午
 */
@RefreshScope
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DruidDataSourceAutoConfigure.class})
@ComponentScan(basePackages = {"com.maimao.core"})
@ComponentScan(basePackages = {"com.maimao.api"})
@ComponentScan(basePackages = {"com.maimao.info"})
@ComponentScan(basePackages = {"com.maimao.mg"})
@MapperScan(basePackages = {"com.maimao.info.mapper"})
@EnableDiscoveryClient
@EnableMongoRepositories(basePackages ="com.maimao.mg.repository" )
@EnableFeignClients
public class InfoApplication {
    public static void main(String[] args) {
        SpringApplication.run(InfoApplication.class, args);
    }
}
